/**
 * 
 */
package com.rapwaves.feeds.content;

import com.google.gwt.user.client.rpc.IsSerializable;
import com.rapwaves.feeds.content.converters.ContentConverter;
import com.rapwaves.feeds.content.converters.PhotoContentConverter;
import com.rapwaves.feeds.content.converters.TextContentConverter;
import com.rapwaves.feeds.content.converters.VideoContentConverter;

/**
 * @author asanthan
 * 
 */
public enum FeedContentType implements IsSerializable {
	TEXT, PHOTO, VIDEO;

	public ContentConverter<?> getConverter() {
		switch (this) {
		case TEXT:
			return new TextContentConverter();
		case PHOTO:
			return new PhotoContentConverter();
		case VIDEO:
			return new VideoContentConverter();
		}

		return null;
	}
}
